package com.haier.a920changjingyanshidemo.fragment;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.haier.a920changjingyanshidemo.R;
import com.haier.a920changjingyanshidemo.activity.EnjoyHeatActivity;
import com.haier.a920changjingyanshidemo.activity.GetWaterKeTingJYJActivity;

/**
 * Created by wanghaixin on 17/8/21.
 */
public class GetWaterKeTingFragment extends Fragment {

    public static String TAG = GetWaterKeTingFragment.class.getSimpleName();

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View inflate = inflater.inflate(R.layout.fragment_getwater_keting, null, false);
        inflate.findViewById(R.id.getwater_keting_jyj).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getContext(), GetWaterKeTingJYJActivity.class);
                startActivity(intent);
            }
        });
        return inflate;
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
    }
}
